package com.doit.day02;

import com.doit.day01.Student;

public class Test {
    public static void main(String[] args) throws Exception {
        MyIterator it = new MyIterator();
        while (it.hasNext()){
            Hero next = it.next();
            System.out.println(next);
        }


    }
}

class MyImplFunction2 implements MyFunction2{
    @Override
    public Integer apply(Integer a, Integer b) {
        return a+b;
    }
}
